container_aria

my file learn about tech container (docker, podman, kubernetes)


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

pod

command

create pod with configuration file

get pod

kubectl get pod
kubectl describe pod <nama_pod>

create Pod, akses Pod, delete Pod

create pod

kubectl create -f filepod.yaml
kubectl create -f filepod.json

# Create a pod based on the JSON passed into stdin
cat pod.json | kubectl create -f -

# Edit the data in registry.yaml in JSON then create the resource using the edited data
kubectl create -f registry.yaml --edit -o json

akses pod

kubectl port-forward <namapod> portLocal:portRemote
kubectl port-forward nginx 8881:80

delete pod

kubectl delete pod <namapod>
kubectl delete pod pod1 pod2
kubectl delete pod <namapod> --namespace <namespace>
kubectl delete pod -l key=value